<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{saleLoanOfferGuarantorBean.id}"/>
		<f:event type="preRenderView" listener="#{saleLoanOfferGuarantorBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sale Loan Offer Guarantor"/>

	<ui:define name="header">
		Sale Loan Offer Guarantor
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty saleLoanOfferGuarantorBean.id}">
				Edit existing Sale Loan Offer Guarantor
			</c:when>
			<c:otherwise>
				Create a new Sale Loan Offer Guarantor
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorSaleLoanOffer" value="Sale Loan Offer:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{saleLoanOfferBean.converter}" id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorSaleLoanOffer" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.saleLoanOffer}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{saleLoanOfferBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorSaleLoanOffer" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorCustGrtNo" value="Cust Grt No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorCustGrtNo" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.custGrtNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorCustGrtNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOccupationNo" value="Occupation No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOccupationNo" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.occupationNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOccupationNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardNo" value="Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardNo" maxLength="20" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.idCardNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardIssuedDate" value="Id Card Issued Date:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardIssuedDate" maxLength="10" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.idCardIssuedDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardIssuedDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardExpireDate" value="Id Card Expire Date:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardExpireDate" maxLength="10" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.idCardExpireDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardExpireDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardIssuedAt" value="Id Card Issued At:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardIssuedAt" maxLength="100" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.idCardIssuedAt}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorIdCardIssuedAt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorNameTitleNo" value="Name Title No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorNameTitleNo" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.nameTitleNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorNameTitleNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorFirstName" value="First Name:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorFirstName" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.firstName}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorLastName" value="Last Name:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorLastName" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.lastName}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorSexNo" value="Sex No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorSexNo" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.sexNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorSexNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorGrtAge" value="Grt Age:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorGrtAge" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.grtAge}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorGrtAge" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrNo" value="Addr No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrNo" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addrNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrMoo" value="Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrMoo" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addrMoo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrBuilding" value="Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrBuilding" maxLength="100" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addrBuilding}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrSoi" value="Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrSoi" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addrSoi}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrRoad" value="Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrRoad" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addrRoad}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr1" value="Addr 1:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr1" maxLength="100" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addr1}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr1" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr2No" value="Addr 2No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr2No" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addr2No}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr2No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr3No" value="Addr 3No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr3No" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addr3No}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr3No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr4No" value="Addr 4No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr4No" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addr4No}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr4No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr5" value="Addr 5:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr5" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.addr5}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorAddr5" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorPhoneNo" value="Phone No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorPhoneNo" maxLength="20" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.phoneNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorMobileNo" value="Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorMobileNo" maxLength="20" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.mobileNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeName" value="Office Name:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeName" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeName}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrNo" value="Office Addr No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrNo" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddrNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrMoo" value="Office Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrMoo" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddrMoo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrBuilding" value="Office Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrBuilding" maxLength="100" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddrBuilding}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrSoi" value="Office Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrSoi" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddrSoi}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrRoad" value="Office Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrRoad" maxLength="50" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddrRoad}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr1" value="Office Addr 1:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr1" maxLength="100" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddr1}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr1" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr2No" value="Office Addr 2No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr2No" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddr2No}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr2No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr3No" value="Office Addr 3No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr3No" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddr3No}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr3No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr4No" value="Office Addr 4No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr4No" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddr4No}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr4No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr5" value="Office Addr 5:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr5" maxLength="10" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officeAddr5}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficeAddr5" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficePhoneNo" value="Office Phone No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficePhoneNo" maxLength="20" value="#{saleLoanOfferGuarantorBean.saleLoanOfferGuarantor.officePhoneNo}"/>
					<h:message for="saleLoanOfferGuarantorBeanSaleLoanOfferGuarantorOfficePhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{saleLoanOfferGuarantorBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty saleLoanOfferGuarantorBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{saleLoanOfferGuarantorBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{saleLoanOfferGuarantorBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>